

#include "xapp_config.h"

#include "system_list.h"

#include "xapp_auto_k.h"
#include "xapp_ble.h"
#include "xapp_system.h"

#include "xPLATFORM.h"

static void init(void)
{
#if USER_CHECK_ENABLED( BLE )    // do nothings 
    xapp_ble_stop();
#endif

    xapp_system_timer_start_single_shot( 1000 );
}

static void destroy(void)
{
    
}

static void task_loop(uint8_t flag)
{
    // wait to reset ?? 
    SYSTEM_SET_RESET();
}

const user_system_desc_t gsSYSTEM_RESET = 
{
    .mode = SYSTEM_MODE_RESET,
    .function = 
    {
        .init = init,
        .destroy = destroy,
        .task_loop = task_loop,
    }
};

